<div class="refentry" lang="en" xml:lang="en"><a id="glIsEnabled"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>glIsEnabled — test whether a capability is enabled</p></div><div class="refsynopsisdiv"><h2>C Specification</h2><div class="funcsynopsis"><table><tr><td><code class="funcdef">GLboolean <b class="fsfunc">glIsEnabled</b>(</code></td><td>GLenum  </td><td><var class="pdparam">cap</var><code>)</code>;</td></tr></table></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="parameters"></a><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><em class="parameter"><code>cap</code></em></span></dt><dd><p>
                    Specifies a symbolic constant indicating a GL capability.
                </p></dd></dl></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="description"></a><h2>Description</h2><p>
            <code class="function">glIsEnabled</code> returns <code class="constant">GL_TRUE</code> if <em class="parameter"><code>cap</code></em> is an enabled capability
            and returns <code class="constant">GL_FALSE</code> otherwise.
            Initially all capabilities except <code class="constant">GL_DITHER</code> are disabled;
            <code class="constant">GL_DITHER</code> is initially enabled.
        </p><p>
            The following capabilities are accepted for <em class="parameter"><code>cap</code></em>:
        </p><p>
        </p><div class="informaltable"><table><colgroup><col /><col /></colgroup><thead><tr><th><span class="bold"><strong>
                        Constant
                        </strong></span></th><th><span class="bold"><strong>
                        See
                        </strong></span></th></tr></thead><tbody><tr><td>
                        <code class="constant">GL_ALPHA_TEST</code>
                        </td><td>
                        <a class="citerefentry" href="glAlphaFunc"><span class="citerefentry"><span class="refentrytitle">glAlphaFunc</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_AUTO_NORMAL</code>
                        </td><td>
                        <a class="citerefentry" href="glEvalCoord"><span class="citerefentry"><span class="refentrytitle">glEvalCoord</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_BLEND</code>
                        </td><td>
                        <a class="citerefentry" href="glBlendFunc"><span class="citerefentry"><span class="refentrytitle">glBlendFunc</span></span></a>, <a class="citerefentry" href="glLogicOp"><span class="citerefentry"><span class="refentrytitle">glLogicOp</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_CLIP_PLANE</code><span class="emphasis"><em>i</em></span>
                        </td><td>
                        <a class="citerefentry" href="glClipPlane"><span class="citerefentry"><span class="refentrytitle">glClipPlane</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_COLOR_ARRAY</code>
                        </td><td>
                        <a class="citerefentry" href="glColorPointer"><span class="citerefentry"><span class="refentrytitle">glColorPointer</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_COLOR_LOGIC_OP</code>
                        </td><td>
                        <a class="citerefentry" href="glLogicOp"><span class="citerefentry"><span class="refentrytitle">glLogicOp</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_COLOR_MATERIAL</code>
                        </td><td>
                        <a class="citerefentry" href="glColorMaterial"><span class="citerefentry"><span class="refentrytitle">glColorMaterial</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_COLOR_SUM</code>
                        </td><td>
                        <a class="citerefentry" href="glSecondaryColor"><span class="citerefentry"><span class="refentrytitle">glSecondaryColor</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_COLOR_TABLE</code>
                        </td><td>
                        <a class="citerefentry" href="glColorTable"><span class="citerefentry"><span class="refentrytitle">glColorTable</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_CONVOLUTION_1D</code>
                        </td><td>
                        <a class="citerefentry" href="glConvolutionFilter1D"><span class="citerefentry"><span class="refentrytitle">glConvolutionFilter1D</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_CONVOLUTION_2D</code>
                        </td><td>
                        <a class="citerefentry" href="glConvolutionFilter2D"><span class="citerefentry"><span class="refentrytitle">glConvolutionFilter2D</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_CULL_FACE</code>
                        </td><td>
                        <a class="citerefentry" href="glCullFace"><span class="citerefentry"><span class="refentrytitle">glCullFace</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_DEPTH_TEST</code>
                        </td><td>
                        <a class="citerefentry" href="glDepthFunc"><span class="citerefentry"><span class="refentrytitle">glDepthFunc</span></span></a>, <a class="citerefentry" href="glDepthRange"><span class="citerefentry"><span class="refentrytitle">glDepthRange</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_DITHER</code>
                        </td><td>
                        <a class="citerefentry" href="glEnable"><span class="citerefentry"><span class="refentrytitle">glEnable</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_EDGE_FLAG_ARRAY</code>
                        </td><td>
                        <a class="citerefentry" href="glEdgeFlagPointer"><span class="citerefentry"><span class="refentrytitle">glEdgeFlagPointer</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_FOG</code>
                        </td><td>
                        <a class="citerefentry" href="glFog"><span class="citerefentry"><span class="refentrytitle">glFog</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_FOG_COORD_ARRAY</code>
                        </td><td>
                        <a class="citerefentry" href="glFogCoordPointer"><span class="citerefentry"><span class="refentrytitle">glFogCoordPointer</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_HISTOGRAM</code>
                        </td><td>
                        <a class="citerefentry" href="glHistogram"><span class="citerefentry"><span class="refentrytitle">glHistogram</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_INDEX_ARRAY</code>
                        </td><td>
                        <a class="citerefentry" href="glIndexPointer"><span class="citerefentry"><span class="refentrytitle">glIndexPointer</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_INDEX_LOGIC_OP</code>
                        </td><td>
                        <a class="citerefentry" href="glLogicOp"><span class="citerefentry"><span class="refentrytitle">glLogicOp</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_LIGHT</code><span class="emphasis"><em>i</em></span>
                        </td><td>
                        <a class="citerefentry" href="glLightModel"><span class="citerefentry"><span class="refentrytitle">glLightModel</span></span></a>, <a class="citerefentry" href="glLight"><span class="citerefentry"><span class="refentrytitle">glLight</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_LIGHTING</code>
                        </td><td>
                        <a class="citerefentry" href="glMaterial"><span class="citerefentry"><span class="refentrytitle">glMaterial</span></span></a>, <a class="citerefentry" href="glLightModel"><span class="citerefentry"><span class="refentrytitle">glLightModel</span></span></a>, <a class="citerefentry" href="glLight"><span class="citerefentry"><span class="refentrytitle">glLight</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_LINE_SMOOTH</code>
                        </td><td>
                        <a class="citerefentry" href="glLineWidth"><span class="citerefentry"><span class="refentrytitle">glLineWidth</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_LINE_STIPPLE</code>
                        </td><td>
                        <a class="citerefentry" href="glLineStipple"><span class="citerefentry"><span class="refentrytitle">glLineStipple</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_MAP1_COLOR_4</code>
                        </td><td>
                        <a class="citerefentry" href="glMap1"><span class="citerefentry"><span class="refentrytitle">glMap1</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_MAP1_INDEX</code>
                        </td><td>
                        <a class="citerefentry" href="glMap1"><span class="citerefentry"><span class="refentrytitle">glMap1</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_MAP1_NORMAL</code>
                        </td><td>
                        <a class="citerefentry" href="glMap1"><span class="citerefentry"><span class="refentrytitle">glMap1</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_MAP1_TEXTURE_COORD_1</code>
                        </td><td>
                        <a class="citerefentry" href="glMap1"><span class="citerefentry"><span class="refentrytitle">glMap1</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_MAP1_TEXTURE_COORD_2</code>
                        </td><td>
                        <a class="citerefentry" href="glMap1"><span class="citerefentry"><span class="refentrytitle">glMap1</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_MAP1_TEXTURE_COORD_3</code>
                        </td><td>
                        <a class="citerefentry" href="glMap1"><span class="citerefentry"><span class="refentrytitle">glMap1</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_MAP1_TEXTURE_COORD_4</code>
                        </td><td>
                        <a class="citerefentry" href="glMap1"><span class="citerefentry"><span class="refentrytitle">glMap1</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_MAP2_COLOR_4</code>
                        </td><td>
                        <a class="citerefentry" href="glMap2"><span class="citerefentry"><span class="refentrytitle">glMap2</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_MAP2_INDEX</code>
                        </td><td>
                        <a class="citerefentry" href="glMap2"><span class="citerefentry"><span class="refentrytitle">glMap2</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_MAP2_NORMAL</code>
                        </td><td>
                        <a class="citerefentry" href="glMap2"><span class="citerefentry"><span class="refentrytitle">glMap2</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_MAP2_TEXTURE_COORD_1</code>
                        </td><td>
                        <a class="citerefentry" href="glMap2"><span class="citerefentry"><span class="refentrytitle">glMap2</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_MAP2_TEXTURE_COORD_2</code>
                        </td><td>
                        <a class="citerefentry" href="glMap2"><span class="citerefentry"><span class="refentrytitle">glMap2</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_MAP2_TEXTURE_COORD_3</code>
                        </td><td>
                        <a class="citerefentry" href="glMap2"><span class="citerefentry"><span class="refentrytitle">glMap2</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_MAP2_TEXTURE_COORD_4</code>
                        </td><td>
                        <a class="citerefentry" href="glMap2"><span class="citerefentry"><span class="refentrytitle">glMap2</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_MAP2_VERTEX_3</code>
                        </td><td>
                        <a class="citerefentry" href="glMap2"><span class="citerefentry"><span class="refentrytitle">glMap2</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_MAP2_VERTEX_4</code>
                        </td><td>
                        <a class="citerefentry" href="glMap2"><span class="citerefentry"><span class="refentrytitle">glMap2</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_MINMAX</code>
                        </td><td>
                        <a class="citerefentry" href="glMinmax"><span class="citerefentry"><span class="refentrytitle">glMinmax</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_MULTISAMPLE</code>
                        </td><td>
                        <a class="citerefentry" href="glSampleCoverage"><span class="citerefentry"><span class="refentrytitle">glSampleCoverage</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_NORMAL_ARRAY</code>
                        </td><td>
                        <a class="citerefentry" href="glNormalPointer"><span class="citerefentry"><span class="refentrytitle">glNormalPointer</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_NORMALIZE</code>
                        </td><td>
                        <a class="citerefentry" href="glNormal"><span class="citerefentry"><span class="refentrytitle">glNormal</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_POINT_SMOOTH</code>
                        </td><td>
                        <a class="citerefentry" href="glPointSize"><span class="citerefentry"><span class="refentrytitle">glPointSize</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_POINT_SPRITE</code>
                        </td><td>
                        <a class="citerefentry" href="glEnable"><span class="citerefentry"><span class="refentrytitle">glEnable</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_POLYGON_SMOOTH</code>
                        </td><td>
                        <a class="citerefentry" href="glPolygonMode"><span class="citerefentry"><span class="refentrytitle">glPolygonMode</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_POLYGON_OFFSET_FILL</code>
                        </td><td>
                        <a class="citerefentry" href="glPolygonOffset"><span class="citerefentry"><span class="refentrytitle">glPolygonOffset</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_POLYGON_OFFSET_LINE</code>
                        </td><td>
                        <a class="citerefentry" href="glPolygonOffset"><span class="citerefentry"><span class="refentrytitle">glPolygonOffset</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_POLYGON_OFFSET_POINT</code>
                        </td><td>
                        <a class="citerefentry" href="glPolygonOffset"><span class="citerefentry"><span class="refentrytitle">glPolygonOffset</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_POLYGON_STIPPLE</code>
                        </td><td>
                        <a class="citerefentry" href="glPolygonStipple"><span class="citerefentry"><span class="refentrytitle">glPolygonStipple</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_POST_COLOR_MATRIX_COLOR_TABLE</code>
                        </td><td>
                        <a class="citerefentry" href="glColorTable"><span class="citerefentry"><span class="refentrytitle">glColorTable</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_POST_CONVOLUTION_COLOR_TABLE</code>
                        </td><td>
                        <a class="citerefentry" href="glColorTable"><span class="citerefentry"><span class="refentrytitle">glColorTable</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_RESCALE_NORMAL</code>
                        </td><td>
                        <a class="citerefentry" href="glNormal"><span class="citerefentry"><span class="refentrytitle">glNormal</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_SAMPLE_ALPHA_TO_COVERAGE</code>
                        </td><td>
                        <a class="citerefentry" href="glSampleCoverage"><span class="citerefentry"><span class="refentrytitle">glSampleCoverage</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_SAMPLE_ALPHA_TO_ONE</code>
                        </td><td>
                        <a class="citerefentry" href="glSampleCoverage"><span class="citerefentry"><span class="refentrytitle">glSampleCoverage</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_SAMPLE_COVERAGE</code>
                        </td><td>
                        <a class="citerefentry" href="glSampleCoverage"><span class="citerefentry"><span class="refentrytitle">glSampleCoverage</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_SCISSOR_TEST</code>
                        </td><td>
                        <a class="citerefentry" href="glScissor"><span class="citerefentry"><span class="refentrytitle">glScissor</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_SECONDARY_COLOR_ARRAY</code>
                        </td><td>
                        <a class="citerefentry" href="glSecondaryColorPointer"><span class="citerefentry"><span class="refentrytitle">glSecondaryColorPointer</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_SEPARABLE_2D</code>
                        </td><td>
                        <a class="citerefentry" href="glSeparableFilter2D"><span class="citerefentry"><span class="refentrytitle">glSeparableFilter2D</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_STENCIL_TEST</code>
                        </td><td>
                        <a class="citerefentry" href="glStencilFunc"><span class="citerefentry"><span class="refentrytitle">glStencilFunc</span></span></a>, <a class="citerefentry" href="glStencilOp"><span class="citerefentry"><span class="refentrytitle">glStencilOp</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_TEXTURE_1D</code>
                        </td><td>
                        <a class="citerefentry" href="glTexImage1D"><span class="citerefentry"><span class="refentrytitle">glTexImage1D</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_TEXTURE_2D</code>
                        </td><td>
                        <a class="citerefentry" href="glTexImage2D"><span class="citerefentry"><span class="refentrytitle">glTexImage2D</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_TEXTURE_3D</code>
                        </td><td>
                        <a class="citerefentry" href="glTexImage3D"><span class="citerefentry"><span class="refentrytitle">glTexImage3D</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_TEXTURE_COORD_ARRAY</code>
                        </td><td>
                        <a class="citerefentry" href="glTexCoordPointer"><span class="citerefentry"><span class="refentrytitle">glTexCoordPointer</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_TEXTURE_CUBE_MAP</code>
                        </td><td>
                        <a class="citerefentry" href="glTexImage2D"><span class="citerefentry"><span class="refentrytitle">glTexImage2D</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_TEXTURE_GEN_Q</code>
                        </td><td>
                        <a class="citerefentry" href="glTexGen"><span class="citerefentry"><span class="refentrytitle">glTexGen</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_TEXTURE_GEN_R</code>
                        </td><td>
                        <a class="citerefentry" href="glTexGen"><span class="citerefentry"><span class="refentrytitle">glTexGen</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_TEXTURE_GEN_S</code>
                        </td><td>
                        <a class="citerefentry" href="glTexGen"><span class="citerefentry"><span class="refentrytitle">glTexGen</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_TEXTURE_GEN_T</code>
                        </td><td>
                        <a class="citerefentry" href="glTexGen"><span class="citerefentry"><span class="refentrytitle">glTexGen</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_VERTEX_ARRAY</code>
                        </td><td>
                        <a class="citerefentry" href="glVertexPointer"><span class="citerefentry"><span class="refentrytitle">glVertexPointer</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_VERTEX_PROGRAM_POINT_SIZE</code>
                        </td><td>
                        <a class="citerefentry" href="glEnable"><span class="citerefentry"><span class="refentrytitle">glEnable</span></span></a>
                        </td></tr><tr><td>
                        <code class="constant">GL_VERTEX_PROGRAM_TWO_SIDE</code>
                        </td><td>
                        <a class="citerefentry" href="glEnable"><span class="citerefentry"><span class="refentrytitle">glEnable</span></span></a>
                        </td></tr></tbody></table></div><p>
        </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="notes"></a><h2>Notes</h2><p>
            If an error is generated,
            <code class="function">glIsEnabled</code> returns 0.
        </p><p>
            <code class="constant">GL_COLOR_LOGIC_OP</code>,
            <code class="constant">GL_COLOR_ARRAY</code>,
            <code class="constant">GL_EDGE_FLAG_ARRAY</code>,
            <code class="constant">GL_INDEX_ARRAY</code>,
            <code class="constant">GL_INDEX_LOGIC_OP</code>,
            <code class="constant">GL_NORMAL_ARRAY</code>,
            <code class="constant">GL_POLYGON_OFFSET_FILL</code>,
            <code class="constant">GL_POLYGON_OFFSET_LINE</code>,
            <code class="constant">GL_POLYGON_OFFSET_POINT</code>,
            <code class="constant">GL_TEXTURE_COORD_ARRAY</code>, and
            <code class="constant">GL_VERTEX_ARRAY</code>
            are available only
            if the GL version is 1.1 or greater.
        </p><p>
            <code class="constant">GL_RESCALE_NORMAL</code>, and <code class="constant">GL_TEXTURE_3D</code> are available only if the GL
            version is 1.2 or greater.
        </p><p>
            <code class="constant">GL_MULTISAMPLE</code>,
            <code class="constant">GL_SAMPLE_ALPHA_TO_COVERAGE</code>,
            <code class="constant">GL_SAMPLE_ALPHA_TO_ONE</code>,
            <code class="constant">GL_SAMPLE_COVERAGE</code>,
            <code class="constant">GL_TEXTURE_CUBE_MAP</code>
            are available only if the GL version is 1.3 or greater.
        </p><p>
            <code class="constant">GL_FOG_COORD_ARRAY</code> and <code class="constant">GL_SECONDARY_COLOR_ARRAY</code>
            are available only if the GL version is 1.4 or greater.
        </p><p>
            <code class="constant">GL_POINT_SPRITE</code>,
            <code class="constant">GL_VERTEX_PROGRAM_POINT_SIZE</code>, and
            <code class="constant">GL_VERTEX_PROGRAM_TWO_SIDE</code>
            are available only if the GL version is 2.0 or greater.
        </p><p>
            <code class="constant">GL_COLOR_TABLE</code>, <code class="constant">GL_CONVOLUTION_1D</code>, <code class="constant">GL_CONVOLUTION_2D</code>,
            <code class="constant">GL_HISTOGRAM</code>, <code class="constant">GL_MINMAX</code>,
            <code class="constant">GL_POST_COLOR_MATRIX_COLOR_TABLE</code>,
            <code class="constant">GL_POST_CONVOLUTION_COLOR_TABLE</code>, and
            <code class="constant">GL_SEPARABLE_2D</code> are available only if <code class="code">ARB_imaging</code> is
            returned when <a class="citerefentry" href="glGet"><span class="citerefentry"><span class="refentrytitle">glGet</span></span></a> is called with <code class="constant">GL_EXTENSIONS</code>.
        </p><p>
            For OpenGL versions 1.3 and greater, or when the <code class="code">ARB_multitexture</code> extension is supported, the following
            parameters return the associated value for the active texture unit:
            <code class="constant">GL_TEXTURE_1D</code>,
            <code class="constant">GL_TEXTURE_2D</code>,
            <code class="constant">GL_TEXTURE_3D</code>,
            <code class="constant">GL_TEXTURE_CUBE_MAP</code>,
            <code class="constant">GL_TEXTURE_GEN_S</code>,
            <code class="constant">GL_TEXTURE_GEN_T</code>,
            <code class="constant">GL_TEXTURE_GEN_R</code>,
            <code class="constant">GL_TEXTURE_GEN_Q</code>,
            <code class="constant">GL_TEXTURE_MATRIX</code>, and
            <code class="constant">GL_TEXTURE_STACK_DEPTH</code>.
            Likewise, the following parameters return the associated value for the
            active client texture unit:
            <code class="constant">GL_TEXTURE_COORD_ARRAY</code>,
            <code class="constant">GL_TEXTURE_COORD_ARRAY_SIZE</code>,
            <code class="constant">GL_TEXTURE_COORD_ARRAY_STRIDE</code>,
            <code class="constant">GL_TEXTURE_COORD_ARRAY_TYPE</code>.
        </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="errors"></a><h2>Errors</h2><p>
            <code class="constant">GL_INVALID_ENUM</code> is generated if <em class="parameter"><code>cap</code></em> is not an accepted value.
        </p><p>
            <code class="constant">GL_INVALID_OPERATION</code> is generated if <code class="function">glIsEnabled</code>
            is executed between the execution of <a class="citerefentry" href="glBegin"><span class="citerefentry"><span class="refentrytitle">glBegin</span></span></a>
            and the corresponding execution of <a class="citerefentry" href="glEnd"><span class="citerefentry"><span class="refentrytitle">glEnd</span></span></a>.
        </p></div>
        {$pipelinestall}{$examples}
        <div class="refsect1" lang="en" xml:lang="en"><a id="seealso"></a><h2>See Also</h2><p>
            <a class="citerefentry" href="glEnable"><span class="citerefentry"><span class="refentrytitle">glEnable</span></span></a>,
            <a class="citerefentry" href="glEnableClientState"><span class="citerefentry"><span class="refentrytitle">glEnableClientState</span></span></a>,
            <a class="citerefentry" href="glGet"><span class="citerefentry"><span class="refentrytitle">glGet</span></span></a>
        </p></div><div class="refsect1" lang="en" xml:lang="en"><div id="Copyright"><h2>Copyright</h2><p>
            Copyright © 1991-2006
            Silicon Graphics, Inc. This document is licensed under the SGI
            Free Software B License. For details, see
            <a class="ulink" href="https://web.archive.org/web/20171022161616/http://oss.sgi.com/projects/FreeB/" target="_top">https://web.archive.org/web/20171022161616/http://oss.sgi.com/projects/FreeB/</a>.
        </p></div></div></div>
